alist = [1,5,15,18,62,33,333,6546,87]
for i in range (0,len(alist)-1):
    for j in range(0,len(alist)-1-i):
        if alist[j]>alist[j+1]:
            alist[j],alist[j+1] = alist[j+1],alist[j]
print(alist)

classes = [["小明","小欧皇","小黑"],["王五","张三","周六"],["周三","周四","周五"]]
i=1
for c in classes:
    for s in c:
        if s == "张三" :
            print("张三在{}班".format(i))
    i=i+1

for i in range (len(alist)-1):
    for j in range(len(alist)-1-i):
        if alist[j]>alist[j+1]:
            alist[j],alist[j+1] = alist[j+1],alist[j]
print(alist)


for i in range (1,len(alist)):
    for j in range(1,len(alist)-i):
        if alist[j]>alist[j+1]:
            alist[j],alist[j+1] = alist[j+1],alist[j]
print(alist)